package com.fallsvc.user.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @auther falls_vc
 * description:
 * @date 2025/9/24  9:34
 */
@Component
public class HelloQueueListener {
    @RabbitListener(queues = "hello")
    public void handler(Message message) {
        System.out.println("收到消息："+ message);
    }
}
